<com:TPanel id="ViewContent" Style="width: 100%;">
	<h2 class="portlet-title">Downloads</h2>
	<com:TDataList Style="width: 100%;" ID="MyDataList" RepeatColumns="3" RepeatDirection="Horizontal" OnItemCommand="onItemCommand" >
		<prop:HeaderTemplate>
		<div style="width: 100%; font-weight:bold; text-align:center;">Available groups</div>
		</prop:HeaderTemplate>

		<prop:FooterTemplate>
			<div style="width: 100%; font-weight:bold; text-align:center;">Total <%# $this->Parent->ItemCount %> groups.</div>
		</prop:FooterTemplate>

		<div style="width: 100%;font-weight:bold; text-align:center;">
		<prop:ItemTemplate>
			<div style="width: 33%; text-align:center;"><com:TLinkButton Text="<%#$this->DataItem['grpname'] %>" CommandName="ShowContent" CommandParameter=<%# $this->DataItem['id'] %> />&nbsp;</div>
		</prop:ItemTemplate>
	</com:TDataList>
<br />
	<com:TDataList Style="width: 100%;" ID="FilesDataList" OnItemCommand="onItemCommand" >
		<prop:HeaderTemplate>
		<div style="width: 100%; font-weight:bold; text-align:center;">Available files</div>
		<table style="border: 1px solid #b0b0b0; width: 100%; padding: 0;" cellspacing=0 cellpadding=0>
		<tr>
  			<th width="40%" style="background: #d0d0d0">Filename</th>
  			<th width="45%" style="background: #d0d0d0">Description</th>
  			<th width="10%" style="text-align: right;background: #d0d0d0">Size&nbsp;</th>
  			<th width="5%" style="text-align: right;background: #d0d0d0">Dl&nbsp;</th>
		</tr>
		</prop:HeaderTemplate>

		<prop:ItemTemplate>
		<tr>
			<td width=40% style="border: 1px solid #d0d0d0"><com:TLinkButton Text="<%#$this->DataItem['filename'] %>" CommandName="SendFile" CommandParameter=<%# $this->DataItem['id'] %> /></td>
			<td width=45% style="border: 1px solid #d0d0d0"><%# sprintf("%s &nbsp;",$this->DataItem['description']) %></td>
			<td width="10%" style="text-align: right;border: 1px solid #d0d0d0"><%# sprintf("%d KB", ($this->DataItem['filesize'] /1024)) %>&nbsp;</td>
			<td width="5%" style="text-align: right;border: 1px solid #d0d0d0"><%# $this->DataItem['dlcount'] %>&nbsp;</td>
		</tr>
		</prop:ItemTemplate>

		<prop:FooterTemplate>
		</table>
		<table width=100%>
		<tr>
			<td align="center">Total <%# $this->Parent->ItemCount %> files.</td>
		</tr>
		</table>
		</prop:FooterTemplate>

	</com:TDataList>
</com:TPanel>